<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('车辆维修支出')" />
    <link rel="stylesheet" href="../../../../../../../../../../../../css/navigation.css">
</head>
<body class="gray-bg">
<div class="navigation visible-xs-block">
    <ol class="breadcrumb">
        <span> > </span>
        <li><a href="#" onclick="gomain()">主页</a></li>
        <li style="color: black">车辆维修支出</li>
    </ol>
    <div class="aLine"></div>
</div>
     <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <form id="formId">
                    <div class="select-list">
                        <ul>
                            <li>
                                <label>车牌号：</label>
                                <input type="text" name="cCarid"/>
                            </li>
                            <!--<li>
                                <label>车辆型号：</label>
                                <select name="cType" th:with="type=${@dict.getType('')}">
                                    <option value="">所有</option>
                                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                                </select>
                            </li>-->
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>

            <div class="btn-group-sm" id="toolbar" role="group">

                <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="ruoyi:repair:exportrepair">
                    <i class="fa fa-download"></i> 导出
                </a>
            </div>
            <div class="col-sm-12 select-table table-bordered">
                <table id="bootstrap-table" style="color: black;font-size: 15px"> </table>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script src="../../../../../../../../../../../../js/breadcrumb.js"></script>
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('ruoyi:manages:edit')}]];
        var removeFlag = [[${@permission.hasPermi('ruoyi:manages:remove')}]];
        var prefix = ctx + "ruoyi/manages";
        var prefixs = ctx +"ruoyi/repair";

        $(function() {
            var options = {
                url: prefix + "/list",
                createUrl: prefix + "/add",
                removeUrl: prefix + "/remove",
                exportUrl: prefixs+ "/exportrepair",
                modalName: "车辆维修支出",
                mobileResponsive: false,
                showColumns: false,
                striped:'true',
                rowStyle:{
                    css:{"height":"50px"}
                },
                columns: [{
                    field: 'cId', 
                    title: 'id',
                    visible: false
                },
                {
                    field: 'cCarid',
                    title: '车牌号',

                },
                {
                    field: 'cType', 
                    title: '车辆型号'
                },
                    {
                        title: '操作',
                        align: 'center',
                        width: 100,
                        formatter: function(value, row, index) {
                            var actions = [];
                                actions.push('<a class="btn btn-info btn-xs" href="javascript:void(0)" onclick="clicks(\'' + row.cCarid + '\')"><i class="fa fa-user"></i>详情</a> ');
                            return actions.join('');
                        }
                    }]
            };
            $.table.init(options);
        });
        function clicks(cCarid) {
            var url  =  ctx + "ruoyi/manages/detail/" + cCarid;
            // alert(cCarid);
            $.modal.openTab("车辆维修详细",url);
        }
        function downloadFile(cData) {
            window.location.href=ctx+"common/download/resource?resource="+cData;
        }
    </script>
</body>
</html>